package com.example.enums;

public enum Status {
    UP(2,"上线"),
    DOWN(3,"下线"),


    Error(500,"失败"),
    OK(200,"正确");

    private final int CODE;
    private final String STATUS;

    private Status(int CODE, String STATUS){
        this.CODE=CODE;
        this.STATUS=STATUS;
    }
    public int getCODE() {
        return CODE;
    }

    public String getSTATUS() {
        return STATUS;
    }
}
